﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;

namespace IDAL
{
   public interface IShoppingModel
    {
       /// <summary>
       /// 添加购物车
       /// </summary>
       /// <param name="shop"></param>
       /// <returns></returns>
       int AddShopingCar(ShoppingModel shop);
       /// <summary>
       /// 删除购物车
       /// </summary>
       /// <param name="shopid"></param>
       /// <returns></returns>
       int removeShopingCar(string shopid);
       /// <summary>
       /// 修改购物车
       /// </summary>
       /// <param name="shopid"></param>
       /// <param name="sums"></param>
       /// <returns></returns>
       int UpdateShoping(int shopid, int sums);
       /// <summary>
       /// 购物车显示
       /// </summary>
       /// <param name="userid"></param>
       /// <returns></returns>
       List<ShoppingModel> getshop(int userid);
    }
}
